package com.unittec.drainage.provider.manage.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.unittec.drainage.provider.manage.common.mybatisTypeHandler.ToGeomTypeHandler;
import com.unittec.drainage.provider.root.EntityRoot;
import com.vividsolutions.jts.geom.Geometry;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 区域坐标表
 *
 * @author Jason
 * @date 2021/8/6
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "region_geom")
public class RegionGeom extends EntityRoot implements Serializable {

    /**
     * 区域id
     */
    @TableField(value = "region_id")
    private String regionId;

    /**
     * 几何图形
     */
    @JsonIgnore
    @JSONField(serialize = false)
    @TableField(value = "geom", typeHandler = ToGeomTypeHandler.class)
    private Geometry geom;

}